/**
 * FileName: PurchaseRecord
 * Author:   Molzx
 * Date:     2019/10/5 17:00
 * Description: 采购申请审批记录
 */
package com.dgut.domain;

/**
 * 〈采购申请审批记录〉
 */
public class PurchaseRecord {


    private String purchapplyid;
    private String opt_name;
    private String opt_departname;
    private String opt;
    private String remark;
    private String opt_date;

    //分页显示的页码
    private Integer page;

    // 后台数据库起始行
    private Integer start;

    // 分页所取行数
    private Integer rows;


    public String getPurchapplyid() {
        return purchapplyid;
    }

    public void setPurchapplyid(String purchapplyid) {
        this.purchapplyid = purchapplyid;
    }

    public String getOpt_name() {
        return opt_name;
    }

    public void setOpt_name(String opt_name) {
        this.opt_name = opt_name;
    }

    public String getOpt_departname() {
        return opt_departname;
    }

    public void setOpt_departname(String opt_departname) {
        this.opt_departname = opt_departname;
    }

    public String getOpt() {
        return opt;
    }

    public void setOpt(String opt) {
        this.opt = opt;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getOpt_date() {
        return opt_date;
    }

    public void setOpt_date(String opt_date) {
        this.opt_date = opt_date;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.start = (page - 1) * rows;
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "PurchaseRecord{" +
                "purchapplyid='" + purchapplyid + '\'' +
                ", opt_name='" + opt_name + '\'' +
                ", opt_departname='" + opt_departname + '\'' +
                ", opt='" + opt + '\'' +
                ", remark='" + remark + '\'' +
                ", opt_date='" + opt_date + '\'' +
                '}';
    }
}
